/**
 * 项目名称:
 *
 * @Author: 夏国倩
 * @Date: 2023/9/18 10:22
 * @Copyright
 */
package Enum4;
public class MonthTest {
    public static void main(String[] args) {
        s(Month.JANUARY);
    }
    public static void s(Month month){
        switch (month){
            case JANUARY:
                System.out.println(" The Current month is JANUARY");
                break;
            case FEBRUARY:
                System.out.println(" The Current month is FENRUARY");
                break;
            case MARCH:
                System.out.println(" The Current month is MARCH");
                break;
            case APRIL:
                System.out.println(" The Current month is APRIL");
                break;
            case MAY:
                System.out.println(" The Current month is MAY");
                break;
            case JUNE:
                System.out.println(" The Current month is JUNE");
                break;
            case JULY:
                System.out.println(" The Current month is JULY");
                break;
            case AUGUST:
                System.out.println(" The Current month is AUGUST");
                break;
            case SEPTEMBER:
                System.out.println(" The Current month is SEPTEMBER");
                break;
            case OCTOBER:
                System.out.println(" The Current month is OCTOBER");
                break;
            case NOVEMBER:
                System.out.println(" The Current month is NOVEMBER");
                break;
            case DECEMBER:
                System.out.println(" The Current month is DECEMBER");
                break;
            default:
                System.out.println("输入错误！");
        }
    }
}
